//
//  PBDownCollectionCell.m
//  PBHomeDemo
//
//  Created by Playboy on 2018/3/14.
//  Copyright © 2018年 tmkj. All rights reserved.
//

#import "PBDownCollectionCell.h"

@interface PBDownCollectionCell ()
@property (strong, nonatomic) IBOutlet UIView *bgView;
@property (strong, nonatomic) IBOutlet UIImageView *coverImageView;
@property (strong, nonatomic) IBOutlet UILabel *nameLabel;
@property (strong, nonatomic) IBOutlet UILabel *priceLabel;
@end

@implementation PBDownCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.bgView.layer.shadowColor = [UIColor lightGrayColor].CGColor;
    self.bgView.layer.shadowOpacity = 0.5f;
    self.bgView.layer.shadowOffset = CGSizeMake(5,5);
    self.bgView.layer.cornerRadius = 3;
}

- (void)refreshWithModel:(PBBestHomeModel *)model {
    [self.coverImageView sd_setImageWithURL:[NSURL URLWithString:model.cover] placeholderImage:nil];
    self.nameLabel.text = model.name;
    self.priceLabel.text = [NSString stringWithFormat:@"%@元/月",model.rent];
}

@end
